import {
	listwithoutdeploy
} from '@/api/service'
const store = {
	state: {
		listservicewithoutdeployOptions: [],
	},
	getters: {
		getservicewithoutdeployOptions(state) {
			return state.listservicewithoutdeployOptions
		},
		
	},
	mutations: {
		UPDATE_SERVICE_OPTIONS(state, data) {
			state.listservicewithoutdeployOptions = data
		},
		
	},
	actions: {
		setServiceOptions({
			commit
		}) {
			listwithoutdeploy()
				.then((response => {
					console.log("response: " + response);
					commit('UPDATE_SERVICE_OPTIONS', response.data)
				}))
			
		},
		
			
	}
}

export default store
